package cn.codeforfun.webservice;

import org.springframework.stereotype.Component;

import javax.jws.WebMethod;
import javax.jws.WebService;

/**
 * Package cn.codeforfun.webservice
 * Project springboot-webservice-demo
 * Author Bin.Wang
 * Created on 2017/4/13 15:35
 * version 1.0.0
 */
@WebService(serviceName = "mathService")
@Component
public class MathService {
  @WebMethod
  public Integer add(Integer a, Integer b) {
    return a + b;
  }

  @WebMethod
  public String addHello(String param) {
    return param + ":hello";
  }
}
